import request from '@/utils/request';
import { stringify } from 'qs';
import { toFormData } from '@/utils/utils.jsx';

//获取列表分页
export async function queryPageList(params) {
  return request(`/zjf-wms/refundlogistics/page?${stringify(params)}`);
}

//新增
export async function saveRefundlogistics(params) {
  return request(`/zjf-wms/refundlogistics/save`, {
    method: 'post',
    data: params,
  });
}

//修改备注
export async function saveRefundlogisticsNote(params) {
  return request(`/zjf-wms/refundlogistics/note`, {
    method: 'post',
    body: toFormData(params),
  });
}

// 创建人列表
export async function queryUserList(params) {
  return request(`/blade-user/listLikeAccountOrUsername?${stringify(params)}`);
}
